home *** CD-ROM | disk | FTP | other *** search
Makefile | 1993-03-14 | 1.1 KB | 58 lines | [TEXT/MPS ] |
- # File: Makefile
- # Target: fgrep
- # Created: Sat, Feb 20, 1993
- # Author: Franklin Chen
-
- # if you don't have gC, you'll need ALLOCA (below)
- C = gC
-
- DEFS = -d STDC_HEADERS -d USG ∂
- -d MPW_OUTPUT
-
- COptions = {DEFS} ∂
- -r ∂
- -mc68020 ∂
- -opt full
-
- LOptions = -d -c 'MPS ' -t MPST
-
- # uncomment if you don't already have getopt, obstack, error, xmalloc
- # (and alloca) in your library
- GCINCDIR = "{CIncludes}"
- GCLIBDIR = "{CLibraries}"
-
- ALLOCA =
- #ALLOCA = "{CLibraries}"alloca.c.o
-
- GCLIBS = "{GCLIBDIR}"getopt.c.o ∂
- "{GCLIBDIR}"obstack.c.o ∂
- "{GCLIBDIR}"error.c.o ∂
- "{GCLIBDIR}"xmalloc.c.o ∂
- {ALLOCA}
-
- LIBS = "{CLibraries}"StdClib.o ∂
- "{Libraries}"Stubs.o ∂
- "{Libraries}"Runtime.o ∂
- "{Libraries}"Interface.o
-
-
- FOBJ = fgrep.c.o kwset.c.o
-
- .c.o ƒ .c
- {C} {COptions} -s {default} {depDir}{default}.c -o {targDir}{default}.c.o
-
- fgrep ƒƒ {FOBJ}
- Link {LOptions} {FOBJ} {GCLIBS} {LIBS} ∂
- -sg Main ∂
- -o fgrep
- fgrep ƒƒ fgrep.r
- Rez fgrep.r -append -o fgrep
-
- install ƒ fgrep
- Duplicate -y fgrep "{MPW}Tools:fgrep"
-
- clean ƒ FRC
- Delete -i -y fgrep {FOBJ} ≈.makeout
-
- kwset.c.o fgrep.c.o ƒ kwset.h "{GCINCDIR}obstack.h"
-